home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C / Games / Arashi 1.1.1 / source code / For your think c folder / VA Kit ƒ / VASins.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-06-26  |  506 b   |  30 lines  |  [TEXT/KAHL]

  1. /*/
  2.      Project Arashi: VASins.c
  3.      Major release: Version 1.1d2, 9/5/95
  4.  
  5.      Last modification: Sunday, June 26, 1994, 2:23
  6.      Created: Sunday, February 12, 1989, 22:47
  7.  
  8.      Copyright © 1989-1994, Juri Munkki
  9. /*/
  10.  
  11. #define    _VASINS_
  12. #include "VA.h"
  13. #include "VAInternal.h"
  14.  
  15. #define PI 3.1415926535
  16.  
  17. #undef    _ERRORCHECK_
  18. #define    _NOERRORCHECK_
  19. #include <Math.h>
  20.  
  21. void    VAInitSins()
  22. {
  23.     register    int        a;
  24.     
  25.     for(a=0;a<ANGLES;a++)
  26.     {    Sins[a]=sin(a*2*PI/ANGLES)*256;
  27.         Cosins[a]=cos(a*2*PI/ANGLES)*256;
  28.     }
  29. }
  30.